/**
 * 页面标题工具
 * @author xsf
 * @date 2019/11/17 0017
 * @version v1.0.0
 **/

import defaultSettings from '../settings'

const title = defaultSettings.title || '解忧杂货店'

export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
